package com.kcwl.carrier.domain.service;

import com.kcwl.carrier.domain.entity.OperateLog;
import com.kcwl.carrier.domain.repository.IOperateLogRepository;
import com.kcwl.carrier.interfaces.query.OperateLogQuery;
import com.kcwl.ddd.domain.entity.KcPage;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 刘旭超
 * @date 2022年12月08日 10:48
 * @Description
 */
@Service
public class OperateLogDomainService {

    @Autowired
    private IOperateLogRepository operateLogRepository;

    /**
     * 查询日志
     */
    public List<OperateLog> queryLog(OperateLogQuery operateLogQuery) {
        return operateLogRepository.queryLog(operateLogQuery);
    }

    /**
     * 添加日志
     */
    public int insertLog(OperateLog operateLog) {
        return operateLogRepository.insertLog(operateLog);
    }
}
